import request from "@/utils/request";

// get List
export function getList(data) {
  return request({
    url: "/ai/busi/module/page",
    method: "post",
    params: data,
  });
}
// add List
export function addList(data) {
  return request({
    url: "/ai/busi/module/add",
    method: "post",
    data: data,
  });
}

// update List
export function updateList(data) {
  return request({
    url: "/ai/busi/module/update",
    method: "post",
    data: data,
  });
}
// delete List
export function deleteList(data) {
  return request({
    url: "/ai/busi/module/dels?ids="+data,
    method: "post",
  });
}
/** 二级  */
// get List
export function getList2(data) {
  return request({
    url: "/ai/busi/module/active/page",
    method: "post",
    params: data,
  });
}
// add List
export function addList2(data) {
  return request({
    url: "/ai/busi/module/active/add",
    method: "post",
    data: data,
  });
}

// update List
export function updateList2(data) {
  return request({
    url: "/ai/busi/module/active/update",
    method: "post",
    data: data,
  });
}

// delete List
export function deleteList2(data) {
  return request({
    url: "/ai/busi/module/active/dels?ids="+data,
    method: "post",
  });
}
